package com.example.administrator.myproject.user

import android.content.Intent
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import com.example.administrator.myproject.R
import com.example.administrator.myproject.login.login22


class InformationFragment : Fragment(), View.OnClickListener {
    private var money: TextView? = null
    private var imageView: ImageView? = null
    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        val view = inflater.inflate(R.layout.my_information, container, false)
        imageView = view.findViewById(R.id.img_account_avatar1) as ImageView
        imageView!!.setOnClickListener(View.OnClickListener {
            val intent = Intent()
            //SoilsenerActivity.class为想要跳转的Activity
            intent.setClass(activity, login22::class.java)
            startActivity(intent)
        })


        return view
    }

    override fun onClick(p0: View?) {
        TODO("Not yet implemented")
    }

//
//    override fun onResume() {
//        super.onResume()
//        val s2 = SPUtils[activity!!, "money", ""] as String?
//        money!!.text = s2
//    }
//
//    override fun onClick(view: View) {
//        val intent = Intent()
//        intent.setClass(activity!!, AssessList::class.java)
//        activity!!.startActivity(intent)
//    }
}
